package com.ai.jzkd.gis.service.mapData;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.ai.dmc.index.base.impl.base.BaseServiceImpl;
import com.ai.dmc.index.base.impl.jotmBase.BaseMServiceImpl;
import com.ai.dmc.index.base.sequence.SequenceGenerator;
import com.ai.dmc.index.common.exception.BusinessException;
import com.ai.dmc.index.service.indicatorstore.IndicatorStoreServiceImpl;
import com.ai.dmc.utils.json.JsonUtil;
import com.ai.frame.bean.InputObject;
import com.ai.frame.bean.OutputObject;
import com.ai.frame.logger.Logger;
import com.ai.frame.logger.LoggerFactory;
import com.ai.jzkd.gis.intf.service.mapData.IMapDataService;
/**
 * 
* @Title: MapDataImpl.java
* @Description: 家装宽带展示层service
* @author xueyf3  
* @date 2016年5月23日 下午4:22:54
* Copyright：Copyright (c) 2016
* Company：北京亚信智慧数据科技有限公司
* @version V1.0
 */
public class MapDataServiceImpl extends BaseServiceImpl implements IMapDataService{
	// 定义对应Mapper文件的命名空间
    private static final String NAMESPACE = "IMapDataDao.";
    
    public static Logger log = LoggerFactory.getServiceLog(MapDataServiceImpl.class);

    private SequenceGenerator sequenceGenerator;

    public void setSequenceGenerator(SequenceGenerator sequenceGenerator) {
        this.sequenceGenerator = sequenceGenerator;
    }
    /**
     * 获取地图展示指标
     */
	@Override
	public void selectMapIndicatorInfo(InputObject inputObject, OutputObject outputObject) throws BusinessException {
		// TODO Auto-generated method stub
		
	}
	/**
	 * 获取地市信息
	 */
	@Override
	public void selectCitysByProvId(InputObject inputObject, OutputObject outputObject) throws BusinessException {
		// TODO Auto-generated method stub
		List<Map<String, String>> citysInfo = this.getBaseDao().queryForList(
                NAMESPACE + "selectCitysByProvId", inputObject.getParams());
        Map<String, Object> resultMap = new HashMap<String, Object>();
        resultMap.put("CITYS", null == citysInfo ? "" : JsonUtil.Object2Json(citysInfo));
        outputObject.setObject(JsonUtil.Object2Json(resultMap));
	}

}
